package com.itbaizhan.myshiro.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PageController {
    @RequestMapping("/{page}")
    public String showPage(@PathVariable String page){
        return page;
    }

    //忽略浏览器获取项目图标  因为没有图标可能会报错
    @GetMapping("favicon.ico")
    @ResponseBody  //页面不跳转
    public void noFavicon(){

    }
}